<template>
    <div>
        <bar1 title="搜索"></bar1>
        <van-search v-model="list" placeholder="请输入搜索关键词" @update:model-value="onlist"/>

        <van-grid :border="false" :column-num="3">
            <van-grid-item v-for="(v,i) in index" :key="i">
                <van-image :src="v.goods_small_logo?v.goods_small_logo:'https://fastly.jsdelivr.net/npm/@vant/assets/apple-1.jpeg'" />
                {{ v.goods_name }}
            </van-grid-item>
        </van-grid>

    </div>
</template>

<script setup>
import bar1 from '@/components/bar1.vue';
import { ref } from 'vue';
import { searchApi } from '@/api/api';





</script>

<style lang="scss" scoped></style>